'use strict';

const BaseController = require('../base');

class QrcodeController extends BaseController {
  static get serviceName() {
    return 'common.qrcode';
  }

  async getQrcode() {
    const { url } = this.ctx.query;
    console.log('url', url);
    const qrcode = await this.service.getQrcode(url);
    this.ctx.success(qrcode);
  }
}

module.exports = QrcodeController;
